1484237803 by Unknown
Author:Unknown
Language: eng
Format: epub
Published: 2018-08-27T22:22:47+00:00
ChapTer 6 Bindings
Figure 6-22. Two CSS classes applied with an array
You can also use the object expression syntax to dynamically apply a class in an array. Listing 6-28 shows how to accomplish this. One thing to note is that we are applying the “error” class name as a string, not a reference, to the data property that holds the same value.
Listing 6-28. Dynamically Applying a CSS Class as Part of an Array
<input
type="text"
v-model="input"
v-bind:class="[{ 'error' : inputError }, activeClass]" />
122
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sita - Warrior of Mithila (Book 2 of the Ram Chandra Series) by Amish(51575)
The Crystal Crypt by Dick Philip K(35695)
Cat's cradle by Kurt Vonnegut(13894)
Always and Forever, Lara Jean by Jenny Han(13654)
Ready Player One by Cline Ernest(12861)
The Last by Hanna Jameson(9236)
Year One by Nora Roberts(8494)
Persepolis Rising by James S. A. Corey(8277)
The remains of the day by Kazuo Ishiguro(7574)
Dark Space: The Second Trilogy (Books 4-6) (Dark Space Trilogies Book 2) by Jasper T. Scott(7386)
Red Rising by Pierce Brown(7344)
Never let me go by Kazuo Ishiguro(7150)
The handmaid's tale by Margaret Atwood(6872)
The Circle by Dave Eggers(6268)
Legacy by Ellery Kane(5950)
The Testaments by Margaret Atwood(5790)
Frank Herbert's Dune Saga Collection: Books 1 - 6 by Frank Herbert(5755)
Pandemic (The Extinction Files Book 1) by A.G. Riddle(5596)
Six Wakes by Mur Lafferty(5209)